<template>
	<view class="container-bg pad-32">
		<u-navbar title="活动规则" placeholder bgColor="transparent" :autoBack="true"></u-navbar>

		<view class="content">
			<view class="title">
				<image class="title-img" src="../../static/image/19.png"></image>
				<text>规则详情</text>
				<image class="title-img" src="../../static/image/20.png"></image>
			</view>
			
			<view class="desc">
				<u-parse :content="desc"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				desc: uni.getStorageSync('lottery')
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container-bg {
		background: url('../../static/image/cj-page-bg.png') no-repeat;
		background-size: 100% 100%;
		min-height: 100vh;

		.content {
			background: white;
			position: relative;
			padding: 40rpx 56rpx;
			border-radius: 24rpx;
			min-height: 80vh;
			overflow-y: scroll;
		}

		// .content::before {
		// 	content: "";
		// 	width: 82px;
		// 	height: 43px;
		// 	background-image: url('../../static/image/21.png');
		// 	background-size: 100% 100%;
		// 	position: absolute;
		// 	top: 0;
		// 	right: 0;
		// }

		// .content::after {
		// 	content: "";
		// 	width: 82px;
		// 	height: 43px;
		// 	background-image: url('../../static/image/22.png');
		// 	background-size: 100% 100%;
		// 	position: absolute;
		// 	bottom: 0;
		// 	left: 0;
		// }

		.title {
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 34rpx;
			font-weight: 700;

			.title-img {
				width: 46rpx;
				height: 12rpx;
				margin: 0 32rpx;
			}
		}
	}
</style>